<template>
	<w-container class='pt-40 page-bg'>
		<w-navbar title="认证结果"></w-navbar>
		<view class="header">
			<text class="title">{{ status==1?'实名认证成功':'实名认证失败' }}</text>
			<view class="hint font-color-minor mt-8" v-if="status!=1">该身份信息认证失败，请重试</view>
		</view>
		
		<u-empty :icon="`${$ossUrl}/static/icon/${status==1?'order-success':'rzsb'}.png`" width="140" height="140" text=" ">
			<w-button shape="circle" style="width: 348rpx;margin-top: 140rpx;" @click="change">{{ status==1?'我知道了':'重新认证' }}</w-button>
		</u-empty>
	</w-container>
</template>

<script>
	export default {
		data() {
			return {
				status:'1'  // 1成功,0失败
			};
		},
		onLoad(e) {
			this.status = e.status
		},
		methods:{
			change() {
				if(this.status==1){
					uni.switchTab({
						url:'/pages/my/my'
					})
				}else{
					uni.navigateBack()
				}
			}
		}
	}
</script>

<style lang="scss">
	.header {
		width: 100%;
		margin-bottom: 144rpx;
		@extend .flex,.flex-dir-col,.flex-ai-center;
		>.title{
			font-size: 48rpx;
			color: #000;
			font-weight: 500;
		}
		>.hint{
			font-size: 28rpx;
		}
	}
</style>
